package com.example.nfcaccesssystem;

import java.io.Serializable;

public class Door implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int id;
	private String doorInfo;
	
	public Door(String doorInfo) {
		this.doorInfo = doorInfo;
	}
	
	public Door(String doorInfo, int id){
		this.doorInfo = doorInfo;
		this.id = id;
	}
	
	public int getId() {
		return id;
	}

	public String getDoorInfo() {
		return doorInfo;
	}

	public void setDoorInfo(String doorInfo) {
		
		this.doorInfo = doorInfo;
	}
	
	@Override
	public String toString() {
		return this.id + ". " + this.doorInfo;
	}
}
